#!/usr/bin/env bash
git pull
source ./env.sh
docker pull $images
docker inspect $container > /dev/null
if [[ $? -eq 0 ]];then
  echo "docker rm -f $container"
fi
cd ..
s=`pwd`/py-kill/URLS.txt
d=/root/URLS.txt
# shellcheck disable=SC2048
echo "docker run -tid --net=host --restart=always -v ${s}:${d}  --name $container $* $latest"
docker ps -a | grep $container
echo "docker logs -f $container"